import { SUCCESS } from '../constants';
import BaseNode from '../core/BaseNode';
import Gate from './Gate';
// AND ， &&
export default class GateAnd extends Gate {

  constructor(name: string, children: BaseNode[] = []) {
    super(`AND_[${name}]`, children);
  }

  protected defaultStatus(): number {
    return SUCCESS;
  }
};
